package ru.ssau.customerManagement.controller.threads.server;

import ru.ssau.customerManagement.controller.ServerSideController;

import java.io.File;
import java.io.IOException;

/**
 * Created by illabefat on 25.11.14.
 */
public class Saver implements Runnable {
    private final ServerSideController controller;

    public Saver(ServerSideController controller) {
        this.controller = controller;
    }

    @Override
    public void run() {
        try {
            controller.exportModel(new File("dump.bin"));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
